<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

$this->title = $model->first_name . $model->last_name;
?>
<style type="text/css">
	.dl-horizontal dt {width: 100px; padding:2px 0;font-size:12px;}
	.dl-horizontal dd {margin-left: 120px; padding:2px 0;}
</style>

<div style="padding:0px 30px;" class="row">

	<div class="modal-header">
		<span><small class="pull-right" >创建时间 : <?= $model->created_at ?></small></span>
		<h4 class="modal-title"><?= Html::encode('客户信息') ?></h4>
	</div>
	
	<div class="modal-body">
	<div class="col-md-5">
		<dl class="dl-horizontal">
			<dt>姓名</dt>
			<dd><?= $this->title?><dd>
			
			<dt>拼音姓名</dt>
			<dd><?= $model->en_first_name ?> &nbsp;&nbsp;<?= $model->en_last_name ?><dd>
			
			<dt>护照号码</dt>
			<dd><?= $model->passport ?><dd>
			
			<dt>护照签发地</dt>
			<dd><?= $model->passport_add?><dd>

			<dt>护照签发日期</dt>
			<dd><?= $model->passport_grant?><dd>

			<dt>护照有效期</dt>
			<dd><?= $model->passport_date ?><dd>

			<?php if($model->country == "中国") { ?>

				<dt>身份证号</dt>
				<dd><?= $model->card ?><dd>

				<dt>身份证签发地</dt>
				<dd><?= $model->card_address ?><dd>

				<dt>民族</dt>
				<dd><?= $model->nation ?><dd>
			<?php } ?>

			<dt>性别</dt>
			<dd><?= \yii::$app->params['gender'][$model->gender] ?><dd>

			<dt>出生日期</dt>
			<dd><?= $model->birthday ?><dd>

			<dt>国籍</dt>
			<dd><?= $model->country ?><dd>

			<dt>出生地</dt>
			<dd><?= $model->native ?><dd>


		</dl>

	</div>

	<div class="col-md-6 col-md-offset-1">
		<?php if($model->passport_img ){ ?>

			<a href="/<?= $model->passport_img ?>" target="_blank" title="护照" >
				<img src="/<?= $model->passport_img ?>" alt="护照" class="img-thumbnail">
			</a>
		<?php } ?>

		<?php if($model->card_img ){ ?>
			<a href="/<?= $model->card_img ?>" target="_blank" title="身份证" >
				<img src="/<?= $model->card_img ?>" alt="身份证" class="img-thumbnail">
			</a>
		<?php } ?>
	</div>
	</div>
</div>
